#ifndef _SSB_SYS_DEF_H_
#define _SSB_SYS_DEF_H_

#define SSB_TAG "SSB"
#define UART_BUF_SIZE (1024)

#define DATA_VERSION_FIELD ("DV_FIELD")
#define SSB_AIRKISS_WECHAT_ID_FIELD ("AW_ID")
#define SSB_LIC_FIELD ("LIC_F")
#define CHIP_ID_FIELD ("CHIP_ID")

#define SSB_UART_CMD_MAX_LEN 512

//#define FAN_BAO_XIAN
//#define RI_SHENG

#define SSB_VERSION (2)

#define SSB_NET_CONNECTED_STATE (1)
#define SSB_NET_DISCONNECTED_STATE (2)


#define AT_TIME_CMD ("AT+TIME=")
#define AT_UART_HEX ("AT+UHEX=") //AT+UHEX=0,XXXX\r\n
#define AT_WECHAT_ID ("AT+KISSID=")
#define AT_STORAGE_PUT ("AT+DSPUT=")
#define AT_STORAGE_GET ("AT+DSGET=")
#define AT_STORAGE_REMOVE ("AT+DSREMOVE=")
#define AT_STORAGE_RENAME_FILE ("AT+FRENAME=")
#define AT_STORAGE_LIST_FILE ("AT+FLIST=")
#define AT_STORAGE_LIST_FILE_END ("AT+FLEND=")
#define AT_STORAGE_LFNAME ("AT+FLNAME=")

#define BASE_SOCKET_RESPONSE ("AT+CRC=%d,%d\r\n")

typedef void (*SSB_Socket_callback_fun)(char *data,int len);
typedef void (*SSB_on_socket_status_change_hand)(int status);
#define SOCKET_TASK_STACK_WORDS 10240
#define SOCKET_TASK_PRIORITY    8
#define SOCKET_RECV_BUF_LEN       1024
#endif